<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/13
 * Time: 14:05
 */

namespace console\controllers;


use common\business\employee\EmployeeService;
use yii\console\Controller;

class EmployeeController extends Controller
{
    public function actionSyncAll() {
        $service = new EmployeeService();
        $result = $service->syncAllFromHr();

        echo (json_encode($result));
    }
}